Font chooser: Nice 'not found' message
authorMatthias Clasen <mclasen@redhat.com>
Sat, 9 May 2015 06:06:28 +0000 (02:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 9 May 2015 06:06:28 +0000 (02:06 -0400)
This copies the style that is used in the file chooser
now.

gtk/ui/gtkfontchooserwidget.ui

index 77590c1ad536e67d4048ad9bb501e4875ecb0729..310f533b2b13c0abab269a0121790bb5a375e4d9 100644 (file)
               </packing>
             </child>
             <child>
-              <object class="GtkLabel">
+              <object class="GtkGrid">
                 <property name="visible">True</property>
+                <property name="column_spacing">12</property>
+                <property name="hexpand">True</property>
+                <property name="vexpand">True</property>
                 <property name="halign">center</property>
-                <property name="valign">start</property>
-                <property name="margin_start">12</property>
-                <property name="margin_end">12</property>
-                <property name="margin_top">12</property>
-                <property name="margin_bottom">12</property>
-                <property name="label" translatable="yes">No fonts matched your search. You can revise your search and try again.</property>
+                <property name="valign">center</property>
+                <style>
+                  <class name="dim-label"/>
+                </style>
+                <child>
+                  <object class="GtkImage">
+                    <property name="visible">True</property>
+                    <property name="icon-name">emblem-documents-symbolic</property>
+                    <property name="pixel-size">64</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">0</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkLabel">
+                    <property name="visible">True</property>
+                    <property name="label" translatable="yes">No Fonts Found</property>
+                    <attributes>
+                      <attribute name="weight" value="bold"/>
+                      <attribute name="scale" value="1.2"/>
+                    </attributes>
+                  </object>
+                  <packing>
+                    <property name="left_attach">1</property>
+                    <property name="top_attach">0</property>
+                  </packing>
+                </child>
               </object>
               <packing>
                 <property name="name">empty</property>